-
Notifications
You must be signed in to change notification settings - Fork 239
Allow disabling printing in wait_for_tx
#3782
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: spr/master/e1eef354
Are you sure you want to change the base?
Conversation
3302850
to
899b363
Compare
73fe359
to
cbc0c1d
Compare
899b363
to
a9c96f6
Compare
crates/sncast/src/lib.rs
Outdated
provider, | ||
transaction_hash, | ||
wait_config.wait_params, | ||
if wait_config.silent { None } else { Some(ui) }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
if wait_config.silent { None } else { Some(ui) }, | |
(!wait_config.silent).then(|| ui), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't think that's more readable, especially having to call the method on (!...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After changing the name to show_ui_outputs
it makes sense now to modify it to wait_config.show_ui_outputs.then(|| ui)
cbc0c1d
to
be263c2
Compare
a9c96f6
to
41b8753
Compare
41b8753
to
39b967c
Compare
be263c2
to
0fd8433
Compare
39b967c
to
0b18bd5
Compare
0fd8433
to
40ad69c
Compare
0b18bd5
to
04e89a1
Compare
40ad69c
to
562b35d
Compare
commit-id:94945a36
04e89a1
to
5ea3fa5
Compare
Stack:
wait_for_tx
#3782 ⬅